<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<!-- 因为 AJAX 库和通用工具的生态已经相当丰富，Vue 核心代码没有重复 -->
		<!-- 提供这些功能以保持精简。这也可以让你自由选择自己更熟悉的工具。 -->
		<script src="https://cdn.jsdelivr.net/npm/axios@0.12.0/dist/axios.min.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/lodash@4.13.1/lodash.min.js"></script>

	</head>
	<body>
		<div id="flip-list-demo" class="demo">
		  <button v-on:click="shuffle">Shuffle</button>
		  <transition-group name="flip-list" tag="ul">
		    <li v-for="item in items" v-bind:key="item">
		      {{ item }}
		    </li>
		  </transition-group>
		</div>
		<script type="text/javascript">
			 /**
			  *
			  * 列表的排序过度
			  */
			 let app=new Vue({
				 el:'#flip-list-demo',
				 data:{
					 items:[1,2,3,4,5,6,7,8,9],
					 nextNum:10,
				 },
				 methods:{
					shuffle:function(){
						this.items=_.shuffle(this.items);
					}
				 }
				 
			 })
		</script>	
		<style type="text/css">
			.flip-list-move {
			  transition: transform 1s;
			}
		</style>
	</body>
</html>
